home *** CD-ROM | disk | FTP | other *** search
/ IRIS Performer 2.2 Friends Demo / SGI IRIS Performer 2.2 Friends Demo.iso / friends / openworlds / wrl / fish.wrl < prev    next >
Text File  |  1997-11-22  |  6KB  |  261 lines

  1. #VRML V2.0 utf8
  2.  
  3.  
  4.  
  5. Group {
  6.   children[
  7.     DEF FishHead Group {
  8.       children [
  9.     DEF Eye1 Transform {
  10.       translation .2 .15 .1
  11.       children 
  12. Group {
  13.   children [  
  14.     Shape {
  15.       appearance Appearance {
  16.         material Material{ diffuseColor 1 1 1 }
  17.         }  
  18.       geometry Sphere { radius .1 }
  19.     }
  20.   Transform {
  21.     translation .03 0 0
  22.       children [
  23.         Shape {
  24.           appearance Appearance {
  25.             material Material{ diffuseColor 0 0.2 0.9 }
  26.           }
  27.         geometry Sphere { radius .08 }
  28.         }
  29.       Transform {
  30.         translation .025 0 0
  31.           children [
  32.             DEF pupil Shape {
  33.               appearance Appearance {
  34.                 material Material { diffuseColor 0.1 0.1 0.1 }
  35.                 }
  36.               geometry Sphere {radius .06 }
  37.             } # Pupil
  38.           ] 
  39.         }
  40.       ]
  41.     }
  42.   ]
  43. } #Eye Group
  44.  
  45.         }         
  46.     DEF Eye2 Transform {
  47.           translation -.2 .15 .1
  48.           rotation 0 0 1 3.1415
  49.           children 
  50.  
  51. Group {
  52.   children [  
  53.     Shape {
  54.       appearance Appearance {
  55.         material Material{ diffuseColor 1 1 1 }
  56.         }  
  57.       geometry Sphere { radius .1 }
  58.     }
  59.   Transform {
  60.     translation .03 0 0
  61.       children [
  62.         Shape {
  63.           appearance Appearance {
  64.             material Material{ diffuseColor 0 0.2 0.9 }
  65.           }
  66.         geometry Sphere { radius .08 }
  67.         }
  68.       Transform {
  69.         translation .025 0 0
  70.           children [
  71.             DEF pupil Shape {
  72.               appearance Appearance {
  73.                 material Material { diffuseColor 0.1 0.1 0.1 }
  74.                 }
  75.               geometry Sphere {radius .06 }
  76.             } # Pupil
  77.           ] 
  78.         }
  79.       ]
  80.     }
  81.   ]
  82. } #Eye Group
  83.  
  84.           }# Eye2
  85.     DEF Head Shape {
  86.       appearance Appearance {
  87.         material DEF GOLDIE Material { diffuseColor 0.8 0.2 0 }
  88.             }
  89.           geometry IndexedFaceSet {
  90.             coord Coordinate {
  91.           point [ 0 0 .6, 0 .6 0, .3 0 0, 0 -.6 0, -.3 0 0 ]
  92.               }
  93.             coordIndex [ 0, 2, 1, -1,
  94.                          0, 3, 2, -1,
  95.                          0, 4, 3, -1,
  96.                          0, 1, 4, -1 ]
  97.             normalPerVertex TRUE
  98.             normal Normal {
  99.               vector [
  100.                 0 0 -1,
  101.                 0 -1 0,
  102.                 -1 0 0,
  103.                 0 1 0,
  104.                 1 0 0
  105.                ]
  106.         }
  107.             normalIndex [ 0, 1, 2, 3, 4 ]
  108.             
  109.           }
  110.         }
  111.       ]
  112.     }#FishHead Group
  113.     DEF Body Transform {
  114.       children 
  115.         Shape{
  116.       appearance Appearance {
  117.         material USE GOLDIE
  118.             }
  119.           geometry IndexedFaceSet {
  120.             coord Coordinate {
  121.           point [ 0 0 -1.2, 0 .6 0, .3 0 0, 0 -.6 0, -.3 0 0 ]
  122.               }
  123.             coordIndex [ 0, 1, 2, -1,
  124.                          0, 2, 3, -1,
  125.                          0, 3, 4, -1,
  126.                          0, 4, 1, -1 ]
  127.             normalPerVertex TRUE
  128.             normal Normal {
  129.               vector [
  130.                 0 0 -1,
  131.                 0 -1 0,
  132.                 -1 0 0,
  133.                 0 1 0,
  134.                 1 0 0
  135.                ]
  136.         }
  137.             normalIndex [ 0, 1, 2, 3, 4 ]
  138.             
  139.           }
  140.         }
  141.       }#Body
  142.     DEF Tail Transform {
  143.       translation 0 0 -1
  144.       children[
  145.       DEF TailBody Transform {
  146.         children 
  147.           Shape{
  148.         appearance Appearance {
  149.           material USE GOLDIE
  150.               }
  151.             geometry IndexedFaceSet {
  152.               coord Coordinate {
  153.             point [ 0 0 0, 
  154.                         0 .4 -.4, 
  155.                        .1 0 -.4, 
  156.                         0 -.4 -.4, 
  157.                        -.1 0 -.4
  158.                         0 0 -.6 ]
  159.                 }
  160.               coordIndex [ 0, 2, 1, -1,
  161.                          0, 3, 2, -1,
  162.                          0, 4, 3, -1,
  163.                          0, 1, 4, -1,
  164.                          5, 4, 1, -1,
  165.                          5, 3, 4, -1,
  166.                          5, 1, 2, -1,
  167.                          5, 2, 3, -1 ]
  168.               normalPerVertex TRUE
  169.               normal Normal {
  170.                 vector [
  171.                   0 0 -1,
  172.                   0 -1 0,
  173.                   -1 0 0,
  174.                   0 1 0,
  175.                   1 0 0,
  176.                   0 0 1
  177.                  ]
  178.           }
  179.               normalIndex [ 0, 1, 2, 3, 4, 5 ]
  180.             
  181.              }
  182.           }
  183.        }#TailBody
  184.        
  185.     DEF TailFin Shape {
  186.       appearance Appearance {
  187.         material USE GOLDIE
  188.         }
  189.       geometry IndexedFaceSet {
  190.         
  191.  
  192.         coord Coordinate {
  193.       point [ 0 0 0, 
  194.                   0 1 -1.0 
  195.                   0 1 -1.6, 
  196.                   0 .8 -1.2, 
  197.                   0 0 -1,
  198.                   0 -.8 -1.2,
  199.                   0 -1 -1.6,
  200.                   0 -1 -1
  201.                    ]
  202.                 }
  203.           coordIndex [ 0, 1,2,3,4,5,6,7, -1,
  204.                        0,7,6,5,4,3,2,1,-1 ]
  205.           normalPerVertex TRUE
  206.           normal Normal {
  207.             vector [
  208.                     0 0 -1,
  209.                     0 -1 0,
  210.                     -1 0 0,
  211.                     0 1 0,
  212.                     1 0 0,
  213.                     0 0 1,
  214.                     0 0 1,
  215.                     0 0 1,
  216.                     0 0 1
  217.                    ]
  218.           }
  219.            normalIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ]
  220.             
  221.            }
  222.        }#TailFin
  223.          
  224.  
  225.     ]
  226.     }#Tail
  227.     DEF MainFins Transform{
  228.       children
  229.         Shape{
  230.         appearance Appearance {
  231.           material USE GOLDIE
  232.               }
  233.             geometry IndexedFaceSet {
  234.               coord Coordinate {
  235.             point [ 0 .6 0, 0 .9 -.3, 0 1.2 -.6, 0 1.3 -1, 
  236.                         0 .9 -.75, 0 .6 -.6, 0 0 -.9, 0 -.6 -.6, 
  237.                         0 -.9 -.75, 0 -1.3 -1, 0 -1.2 -.6, 
  238.                         0 -.9 -.3, 0 -.6 0]
  239.                 }
  240.               coordIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, -1,
  241.                          0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, -1]
  242.               normalPerVertex TRUE
  243.               normal Normal {
  244.                 vector [
  245.                   0 0 -1,
  246.                   0 -1 0,
  247.                   -1 0 0,
  248.                   0 1 0,
  249.                   1 0 0,
  250.                   0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1, 0 0 1, 
  251.                   0 0 1
  252.                  ]
  253.           }
  254.               normalIndex [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 , 11, 12]
  255.             
  256.              }
  257.           }
  258.       }
  259.   ]
  260. }
  261.